package com.cg.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.JdbcType;


/**
 * @author 作者
 * @since 2022-05-19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "public.t_stock", autoResultMap = true)
public class StockPO {

    @TableId(value = "stock_id", type = IdType.AUTO)
    private Integer stockId;

    /**
     * 10:短袖 20:长袖 30:短裤 40:长裤
     */
    @TableField(value = "stock_type", jdbcType = JdbcType.INTEGER)
    private Integer stockType;

    @TableField(value = "stock_num", jdbcType = JdbcType.INTEGER)
    private Integer stockNum;


}
